Customize the callback function:
Register a callback for image grabbing and start acquiring images.
Call MV_CC_SetImageNodeNum() to set the appropriate number of buffer nodes in SDK.
Call MV_CC_StartGrabbing() to start acquiring images.
Call MV_CC_GetImageBuffer() in the application layer to get frame data in the specified pixel format.
Call MV_CC_FreeImageBuffer() to release the buffer.
Customize the thread function to receive and process images.
Start grabbing images.